package com.shenghui.enterprise.enterprise.admin.controller;

import com.shenghui.enterprise.base.entity.PageModel;
import com.shenghui.enterprise.enterprise.service.IEntBasicInfoService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Description: 企业基础信息表 前端控制器
 * @Author tt
 * @Email: happyxiaohou@gmail.com
 * @Date: 2020-10-13
 * @Copyright (c) 2020-2022 云南昇晖科技有限公司
 */
@RestController
@RequestMapping("/admin/entBasicInfo" )
@Api(value = "企业基础信息表接口",description = "用作企业基础信息表演示")
public class AdminEntBasicInfoController {

    @Autowired
    private IEntBasicInfoService entBasicInfoService;

    /**
     * 分页查询企业列表信息
     */
    @RequestMapping("/findList")
    public Object findList(@RequestParam Map map) {
        try {
            return entBasicInfoService.findList(map);
        } catch (Exception e) {
            e.printStackTrace();
            return new PageModel(0, null);
        }
    }

}
